body {
    background-color: #282C38;
    color: #fff;
    font-family: 'Roboto', sans-serif;
}
.page-title {
    font-weight: 300;
    font-size: 26px;
    margin-top: 20px;
    margin-bottom: 30px;
    width: 100%;
    text-align: center;
}
span.mdl-layout-title {
    font-weight: 300;
    font-size: 30px;
}
span.mdl-layout-title > span {
    font-weight: 900;
    font-size: 30px;
    color: #00A3C6;
}
.mdl-layout__header-row {
    padding: 0 80px 0 80px;
    background-color: #363b4a
}
main {
    padding: 0 80px 0 80px;
}
@media screen and (min-width: 1024px) {
    #game-grid .mdl-card {
        height: 300px !important;
        width: 225px !important;
    }
}
.nav-menu-parent {
    position: relative;
    margin: 0 4px;
}
.mdl-menu__outline {
    background-color: #333846;
    color: white;
}
.mdl-menu__item {
    color: white;
    font-size: 14px;
}
.mdl-menu__item:hover, .mdl-menu__item.hovered, .mdl-menu__item:focus {
    background-color: #00A3C6;
}
.mdl-tooltip {
    font-size: 12px;
}
#bitrateField {
    width: 100px;
    height: 36px;
    overflow: hidden;
    text-transform: none;
}
.bitrateMenu {
    width: 170px;
}
.mdl-button {
    color: #fff !important;
}
.mdl-grid {
    width: 100%;
}
.mdl-cell {
    text-align: center;
    color:#fff;
    padding: 25px;
}
#backIcon {
    position: fixed;
    left: 28px;
}
#backIcon:hover {
    cursor: pointer;
}
.mdl-dialog {
    width: 500px;
    background-color: #333846;
    color: white;
}
.mdl-dialog__title {
    padding: 24px 24px 14px;
    margin: 0;
    font-size: 2.5rem;
}
.mdl-dialog__content {
    padding: 20px 24px 14px 24px;
    color: rgba(255, 255, 255, 1);
}
.mdl-dialog__actions button {
    width: 100%;
}
.mdl-textfield__input {
    width: 152%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.90);
}
.mdl-textfield__label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.90);
}
#naclSpinner {
    display: none;
    z-index: 2;
    position: fixed;
    left: 50%;
    bottom: 50%;
    transform: translate(-50%, -50%);
    margin: 0 auto;
    text-align: center;
}
#loadingSpinner {
    display: none;
    z-index: 1;
    position: fixed;
    left: 50%;
    bottom: 50%;
    transform: translate(-50%, -50%);
    margin: 0 auto;
    color: white;
    text-align: center;
}
#snackButton {
    width: 0px;
    height: 0px;
    display: none;
}
.mdl-snackbar__text {
    padding: 14px 30px 14px 30px;
}
.mdl-snackbar {
    min-width:0px;
}
#host-grid, #game-grid {
    padding: 15px ;
    margin: 35px 0 0 0;
    flex: 1;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    overflow: auto;
    max-height: 850px;
}
#host-grid .mdl-card {
    flex-basis: 15%;
}
#game-grid .mdl-card {
    position: relative;
    background: url('../res/placeholder_game.svg') rgba(29, 29, 29, 1) center/cover no-repeat;
}
#host-grid .mdl-card, #game-grid .mdl-card {
    text-align: center;
    width: 170px;
    height: 170px;
    min-height: 170px;
    margin: 20px 20px;
    cursor: pointer;
    transition: all .2s ease-in-out;
    will-change: transform;

}
#host-grid .mdl-card:hover, #host-grid .mdl-card:focus, #host-grid .mdl-card:active, #game-grid .mdl-card:focus, #game-grid .mdl-card:active {
    outline: #00A3C6 solid 2px;
    transform: scale(1.2);
}
#host-grid .mdl-card__title {
    padding: 0;
}
#host-grid .mdl-card__title .mdl-card__title-text {
    width: 100%;
    font-size: 16px;
    padding: 10px 15px;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
}
#host-grid .mdl-shadow--4dp {
    box-shadow: unset;
}
#game-grid .mdl-card img {
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: opacity .3s;
    z-index: -1;
}
#game-grid .mdl-card img.fade-in {
    opacity: 1;
}
#game-grid .game-title {
    position: absolute;
    bottom: 0;
    min-height: 20px;
    font-size: 14px;
    font-weight: 300;
    padding: 5px 0;
    width: 100%;
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);

}
#game-grid .game-title span {
    padding: 0 10px;
}
.add-host-card > .mdl-card__title {
    color: #fff;
    background: url('../res/ic_add_to_queue_white_48px.svg') center no-repeat #3E4454;
}
.host-container > .mdl-card__title {
    color: #fff;
    background: url('../res/ic_tv_white_48px.svg') center no-repeat #3E4454;
}
.mdl-card.hovered {
    background-color: initial;
    outline: #00A3C6 solid 2px; 
    transform: scale(1.2);
}
#host-grid p {
    margin: 0;
}
#host-grid .mdl-textfield {
    width: 200px;
    margin-right: 20px;
    margin-bottom: 0px;
}
#host-grid #GFEHostIPField {
    padding-bottom: 0px;
}
#host-grid #selectHost {
    padding: 0px;
    line-height: 20px;
    height: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 20px;
    background: none;
}
#host-grid .button-holder {
    padding: 0px;
    margin-top: 10px;
    margin-bottom: 10px;
}
.host-settings {
    position:absolute;
    right:5px;
    top:5px;
    width:24px;
    height:24px;
    z-index: 5;
    background-image: url('../res/menu_48dp_E8EAED_FILL0_wght400_GRAD0_opsz48.svg');
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: center;
    border: 0;
    cursor: pointer;
}
/*.remove-host:hover, .remove-host:focus {
    background-image: url('\\static\\res\\ic_remove_circle_white_24px.svg');
}*/
#pairButton, #showAppsButton {
    margin: 3px;
}
#listener {
    overflow: hidden;
    margin-top: 0px;
    height: 0px;
}
.fullscreen {
    height: 100vh !important;
    overflow: hidden !important;
    margin: auto !important;
    padding: 0 !important;
    border: none !important;
}
.current-game {
    outline: solid #8BC34A 2px;
}
.host-cell-inactive {
    outline: solid #F44336 2px;
}
.host-cell:hover {
    cursor: pointer;
    color: #000 !important;
}
.cancel-current:hover {
    cursor: pointer;
}
.cancel-current {
    border: 2px solid white;
    padding: 5px;
    border-radius: 5px;
}
.cancel-current img {
    margin-right: 5px;
}
.cancel-current .game-title {
    color: #fff;
}
#pairingDialogText, #quitAppDialogText, #deleteHostDialogText, #restartMoonlightDialogText, #terminateMoonlightDialogText {
    font-size: 1.1rem;
}
#continueAddHost, #continueDeleteHost, #continueQuitApp, #exitTerminateMoonlight{
    width: 48%;
}
#cancelAddHost, #cancelDeleteHost, #cancelTerminateMoonlight, #cancelQuitApp {
    width: 48%;
    margin: 0 10px 20px 0;
}
#pressOK {
    margin: 0 10px 20px 0;
}
#cancelPairingDialog {
    margin: 0 10px 20px 0;
}
#continueAddHost:focus, #cancelAddHost:focus,
#continueDeleteHost:focus, #cancelDeleteHost:focus,
#cancelPairingDialog:focus, #removeHostButton:focus,
#backIcon:focus, #quitCurrentApp:focus,
#continueQuitApp:focus, #cancelQuitApp:focus,
#exitTerminateMoonlight:focus, #cancelTerminateMoonlight:focus, #pressOK:focus, .mdl-icon-toggle:focus, .mdl-button:focus {
    background-color: #404354;
    box-shadow: rgba(0, 163, 198, 1) 0px 0px 1px 2px;
}
#ipPart1.hovered, #ipPart2.hovered, #ipPart3.hovered, #ipPart4.hovered {
    background-color: #404354;
    box-shadow: rgba(0, 163, 198, 1) 0px 0px 1px 2px; 
    color: white;
}
.mdl-textfield__input.hovered {
    background-color: #404354;
}
#modelCodePlaceholder {
  position: fixed;
  bottom: 1cm;
  left: 1cm;
  font-size : 12px;
}
.mdl-dialog__content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.mdl-dialog__content button {
    margin-bottom: 10px; 
    width: 100%; 
}
}